-- GENERATED SPELL FOR [Furious Nether-wraith] --


function spell0_22408(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(39337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22408', 1000, 1)
end

function spell1_22408(pUnit, Event) --@Shadow Blast,n/a--
pUnit:FullCastSpellOnTarget(38205,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22408', 6000, 1)
end

function Sorts_22408(pUnit, Event)
local choix_sorts_22408 = math.random(0, 1)
if choix_sorts_22408 == 0 then
pUnit:RegisterEvent('spell0_22408', 1, 1)
end
if choix_sorts_22408 == 1 then
pUnit:RegisterEvent('spell1_22408', 1, 1)
end
end

function mob22408_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22408', math.random(1500, 3000), 1)
end

function mob22408_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22408_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22408_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22408, 1, 'mob22408_Action')
RegisterUnitEvent(22408, 2, 'mob22408_Leave')
RegisterUnitEvent(22408, 3, 'mob22408_Kill')
RegisterUnitEvent(22408, 4, 'mob22408_Die')
